<div class="cover" v-show="status">
    <div class="panel panel-default m-createPrize">
        <div class="panel-heading">
            <h3 class="panel-title">{{title}}</h3>
            <a href="javascript:;" class="close" v-on:click="status=false"><i class="fa fa-close"></i></a>
        </div>
        <div class="panel-body">
            <form class="form-horizontal">

                <div class="form-group" style="display: none;">
                    <label  class="col-sm-3 control-label">奖品ID</label>
                    <div class="col-sm-8">
                        <input type="text" class="form-control" name="id" id="J_md_id" />
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-3 control-label">奖品标题</label>
                    <div class="col-sm-8">
                        <input type="text" class="form-control" name="title" id="J_md_title" v-model="data.title"/>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-3 control-label">奖品图片<span class="J_prizeSize"></span></label>
                    <div class="col-sm-8">
                        <uploadimg v-bind:src="data.iconUrl" v-on:listenmsgfromchild="listenmsgfromchild"></uploadimg>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-3 control-label">中奖概率</label>
                    <div class="col-sm-8">
                        <input type="text" class="form-control" name="rate" id="J_md_rate" v-model="data.rate"/>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-3 control-label">奖品权重</label>
                    <div class="col-sm-8">
                        <input type="text" class="form-control" name="weight" id="J_md_weight" v-model="data.weight"/>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-3 control-label">奖品数量</label>
                    <div class="col-sm-8">
                        <input type="text" class="form-control" name="num" id="J_md_num" v-model="data.num"/>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-3 control-label">奖品类型</label>
                    <div class="col-sm-8">
                        <select class="form-control" name="bizType" id="J_bizType" v-model="data.bizType">
                            <option value="3">广告优惠券</option>
                        </select>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-3 control-label"></label>
                    <div class="col-sm-8">
                        <button class="btn btn-default" v-on:click.prevent="submit">{{btnText}}</button>
                    </div>
                </div>

            </form>
        </div>
    </div>
</div>
